package me.jiatao.viewbinding

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import me.jiatao.viewbinding.databinding.FragmentViewBinding


class BindingFragment : Fragment() {
    private var fragmentViewBinding: FragmentViewBinding? = null

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        fragmentViewBinding = FragmentViewBinding.inflate(inflater, container, false)
        return fragmentViewBinding!!.root
    }

    override fun onDestroyView() {
        fragmentViewBinding = null
        super.onDestroyView()
    }
}